package net.uman.service;

import java.util.List;

import net.uman.dao.PointDao;
import net.uman.entity.Point;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PointManager extends Manager {
	@Autowired
	private PointDao pointDao;
	
	public Point getPoint(){
		List<Point> points = pointDao.getAll();
		return points.isEmpty()?null:points.get(0);
	}
	
	public void save(Point point){
		pointDao.save(point);
	}
}
